<chapter xml:id="algorithm.h">
<title><tt>__vic/algorithm.h</tt></title>

<p>Generic algorithms.</p>


<chapter xml:id="skip_if_front">
<title><tt>skip_if_front()</tt></title>

<code-block lang="C++"><![CDATA[
template<
    std::forward_iterator Iter,
    std::predicate<std::iter_value_t<Iter>> Pred
>
Iter skip_if_front(Iter begin, Iter end, Pred pred);
]]></code-block>

<p>Skips all leading elements that match the given predicate and returns new
begin iterator.</p>

</chapter>


<chapter xml:id="skip_if_back">
<title><tt>skip_if_back()</tt></title>

<code-block lang="C++"><![CDATA[
template<
    std::bidirectional_iterator Iter,
    std::predicate<std::iter_value_t<Iter>> Pred
>
Iter skip_if_back(Iter begin, Iter end, Pred pred);
]]></code-block>

<p>Skips all trailing elements that match the given predicate and returns new
end iterator.</p>

</chapter>


</chapter>
